package demo04;

import java.text.SimpleDateFormat;
import java.time.Clock;
import java.time.LocalDate;
import java.time.ZoneId;
import java.util.Date;

public class Test02 {
    public static void main(String[] args) {
        Date date = new Date(System.currentTimeMillis());
        System.out.println(date);
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy MMMM dd EEEE");
        System.out.println(simpleDateFormat.format(date));
        ZoneId zoneId = ZoneId.systemDefault();
        LocalDate localDate = LocalDate.now(Clock.system(zoneId));
        System.out.println(localDate);

    }
}
